package org.vectrics.cms;

import javax.servlet.jsp.JspException;

import org.vectrics.hibernate.ThreadProperties;
import org.vectrics.struts.VectricsActionData;
import org.vectrics.struts.VectricsStrutsAction;

public class SaveContentAction extends VectricsStrutsAction {

	protected String doExecute(VectricsActionData actionData)
			throws JspException {
		
		ContentEditForm form = (ContentEditForm)actionData.getForm();
		ContentHelper helper = new ContentHelper();
		helper.saveContent(ThreadProperties.getDomain(), form.getSection(), form.getCode(), form.getContent());
		
		
		return "success";
	}

}
